import type { profileType } from "../login/type";


interface ResPublicCode {
    code: number
    msg: string
}

export interface baseVoiceType {
    id: number;            // 'id'
    voiceUrl: string;      // '音频链接'
    voiceLength: number;   // '音频长度'
    name: string;          // '语音条名字'
}

export interface voicePackageDetailType extends baseVoicePackageType{
    userInfo:profileType,
    voiceInfoList: baseVoiceType[];
}

export interface baseVoicePackageType{
    id: number;              // 'id'
    uid: number;             // 用户id
    name: string;            // 语音包名称
    avatar: string;          // 语音包头像
    intro: string;           // 语音包简介
    playCount: string;       // 播放量
    status: number;          // 状态 0:未审核 1：审核
    isPrivacy: number;       // 是否私密：0公开 1私密
    isPay: number;           // 是否付费：0免费 1付费
    payMoney: number;        // 付费金额
    createTime: Date;        // 创建时间
    updateTime: Date;        // 更新时间

}

export interface homeVoiceActorRecomItemType extends profileType {
    voicePackageList: baseVoicePackageType[]; // 语音包数组
}


export interface HomeVoiceActorRecomResType extends ResPublicCode{
    data: homeVoiceActorRecomItemType[];
}

export interface VoiceActorDetailResType extends ResPublicCode{
    data: homeVoiceActorRecomItemType;
}